<!--
 * @Author: liuyonghu
 * @Date: 2021-11-24 18:35:18
 * @LastEditTime: 2021-11-25 00:11:37
 * @LastEditors: liuyonghu
 * @Description: 
 * @FilePath: /demos/svgBG/index.html
-->

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div
      style="
        width: 600px;
        height: 600px;
        background-image: url(./bg.svg);
        background-repeat: no-repeat;
        background-position: center;
      "
    ></div>

    <script>
      window.onload = () => {
        console.log('1');
      };

      window.onload = () => {
        console.log('2');
      };
    </script>
  </body>
</html>
